import instance from '@/utils/request';

export function getsysManagapi() {
  return instance.request({
    url: "api/SysManage/GetMenuManage",
    method: "post",
  })
}

export function getsysManagesapi() {
  return instance.request({
    url: "api/SysManage/GetMenuManages",
    method: "post",
  })
}

//添加同级
export function addtree(data) {
  return instance.request({
    url: "api/SysManage/AddMenuManage",
    method: "post",
    data
  })
}

//修改菜单
export function updatetree(data) {
  return instance.request({
    url: "api/SysManage/UpdateMenuManage",
    method: "post",
    data
  })
}